package util;

import lombok.Data;

import java.util.List;

/**
 * @author lyl
 * description:分页
 */
@Data
public class PageUtil {
    /**
     * 查询出的集合
     */
    private List list;

    /**
     * 总大小
     */
    private long size;

    public PageUtil(List list, long size) {
        this.list = list;
        this.size = size;
    }

    @Override
    public String toString() {
        return "PageUtil{" +
                "list=" + list.toString() +
                ", size=" + size +
                '}';
    }
}
